home *** CD-ROM | disk | FTP | other *** search
- Path: strauss.udel.edu!not-for-mail
- From: jcorig@strauss.udel.edu (John Pat Corigliano)
- Newsgroups: comp.sys.amiga.programmer
- Subject: SAS Overlays
- Date: 5 Mar 1996 01:25:58 -0500
- Organization: University of Delaware
- Message-ID: <4hgmpm$a88@strauss.udel.edu>
- NNTP-Posting-Host: strauss.udel.edu
-
- I would like to use overlays for a project - right now the proggy is using
- about 100K so I though overlays would help. I want to put all the code
- that isn't used too often, like init stuff into overlays so that they are
- removed from memory. My proggy works fine if I link it normally, but when
- I try to implement overlays, here comes Mr. Guru (8000 0004).
-
- Here's part of the makefile:
-
- CFLAGS = STRIPDEBUG NOCHKABORT ERROREXX PARMS=REG VERBOSE NOLINK NOSTACKCHECK
- MEMORYSIZE=HUGE OPTIMIZE OPTIMIZERSIZE
- LDFLAGS = NEWOCV
- LIBS = lib:scm.lib lib:sc.lib lib:amiga.lib
-
- .c .o:
- $(RM) $@
- $(CC) $(CFLAGS) $*.c
-
- Program : $(OBJS)
- $(RM) $@
- $(LD) from lib:c.o main.o with overlay LIB $(LIBS) to $@ \
- $(CC) $(LDFLAGS)
-
- And here is the "overlay" file:
-
- overlay
- window.o
- *dynamic.o
- **screens.o
- ***exchange.o
- ****exec.o
- *****pubport.o
- ******win_control.o+boopsi.o+colors.o+iff.o+image.o+menu.o+setup.o+tree.o
- #
-
- I want everything but the stuff on the last line to always be in memory.
- This is my first attempt at overlays, so any help would be appreciated.
-
- Also, are there any special techniques needed? i.e. do global variables
- work the same?
-
- The program creates 2 sub-processes. Does this effect overlays?
-
- TIA,
- --
- John Corigliano jcorig@strauss.udel.edu
- Computer and Information Science University of Delaware
- --
- "Never drive a car when you're dead." - Tom Waits
-